package com.sk.bilibili.model.fragment.member;

import com.sk.api.annotations.Autowired;
import com.sk.bilibili.mapper.VideoSetMapper;
import com.sk.bilibili.model.BaseModel;
import com.sk.bilibili.other.JsonMap;
import com.sk.bilibili.utils.RequestUtils;
import com.sk.bilibili.view.fragment.member.VideoSetFragment;

public class VideoSetModel extends BaseModel<VideoSetFragment> {

    @Autowired
    VideoSetMapper videoSetMapper;

    public void loadVideoSet(Integer memberId) {
        JsonMap map=new JsonMap();
        map.put("size",2233);//获取全部
        map.put("memberId",memberId);
        RequestUtils.process(videoSetMapper.getVideoSets(map), videoSetPage ->
                view.loadSuccess(videoSetPage.getRecords()));
    }

}